{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" method="post" action=""  enctype="multipart/form-data">
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">学科活动</p>	
                </div>
                <div class="box-body">
                      <div class="form-group">
							  <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
								   活动项目名称：
							  </label>
							  <div class="input-group col-md-5 col-sm-12 col-xs-12">
								    <input type="text" class="form-control" name="activitys_title" >
							  </div> 
				       </div>
                      <div class="form-group">
							  <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
								   年级名称：
							  </label>
							  <div class="input-group col-md-5 col-sm-5 col-xs-12">
								   <select class="form-control" name="grade_id">
								    {%foreach from=$grade_list key=key item=value%}
										<option value="{%$value.grade_id%}"> {%$value.grade_name%}</option>
									{%/foreach%}
								
								    </select>
							  </div> 
				        </div>
						<div class="form-group">
							  <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
								   学科名称：
							  </label>
							  <div class="input-group col-md-5 col-sm-12 col-xs-12">
								   <select class="form-control" name="subject_id">
								   {%foreach from=$subject_list key=key item=value%}
										<option value="{%$value.subject_id%}">{%$value.subject_name%}</option>
									{%/foreach%}
										
								    </select>
							  </div> 
				        </div>
						<div class="form-group">
							  <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
								   活动计划：
							  </label>
							  <div class="input-group col-md-10 col-sm-12 col-xs-12">
								   <textarea id="category_content" name="activitys_con" rows="10" cols="40" style="width: 100%"></textarea>
							  </div> 
						</div>
						
                        <div class="form-group">
							  <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
								   获奖名单：
							  </label>
							  <div class="input-group col-md-10 col-sm-12 col-xs-12">
								   <textarea id="category_content1" name="activitys_award" rows="10" cols="40" style="width: 100%"></textarea>
							  </div> 
						</div>
						 
                        <div class="form-group">
							  <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
								   活动总结：
							  </label>
							  <div class="input-group col-md-10 col-sm-12 col-xs-12">
								   <textarea id="category_content2" name="activitys_summarize" rows="10" cols="40" style="width: 100%"></textarea>
							  </div> 
						</div>
						 <div class="form-group">
							  <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
								   附件：
							  </label>
							  <div class="input-group col-md-6 col-sm-12 col-xs-12">
								   <input type="file" name="activitys_file" > 
							  </div> 
						</div>
				   </div><!--box-body -->
				   <div class="box-footer text-center">
				         <button type="submit" class="btn btn-primary"> 保 存</button>
				   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
<!--编辑器-->
<script type="text/javascript" src="static/xhe/xheditor-1.2.2.min.js"></script>
<script type="text/javascript" src="static/xhe/xheditor_lang/zh-cn.js"></script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{	

	$.extend(XHEDITOR.settings,{shortcuts:{'ctrl+enter':submitForm}});//修改默认设置
	$('#category_content').xheditor({modalWidth:700,modalHeight:500,upBtnText:'浏览',upLinkUrl:"!ckfinder/upload.html",upImgUrl:"!ckfinder/upload.html?type=Images",upFlashUrl:"!ckfinder/upload.html?type=Flash",upMediaUrl:"!ckfinder/upload.html"});
    $('#category_content1').xheditor({modalWidth:700,modalHeight:500,upBtnText:'浏览',upLinkUrl:"!ckfinder/upload.html",upImgUrl:"!ckfinder/upload.html?type=Images",upFlashUrl:"!ckfinder/upload.html?type=Flash",upMediaUrl:"!ckfinder/upload.html"});
  	$('#category_content2').xheditor({modalWidth:700,modalHeight:500,upBtnText:'浏览',upLinkUrl:"!ckfinder/upload.html",upImgUrl:"!ckfinder/upload.html?type=Images",upFlashUrl:"!ckfinder/upload.html?type=Flash",upMediaUrl:"!ckfinder/upload.html"});

}
function submitForm(){$('#myform').submit();}
</script>
